import Router from 'koa-router'

import ordersController from '../controller/dlyadmin/ordersController'

const router = new Router()

router.prefix('/dlyadminapi/orders')

router
	/**
	 * @swagger
	 * /dlyadminapi/orders/serviceMarket:
	 *   get:
	 *     description: 抖店服务市场订单列表
	 *     tags: [订单管理]
	 *     summary: "抖店服务市场订单列表"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.get('/serviceMarket', ordersController.serviceMarketlist)
	/**
	 * @swagger
	 * /dlyadminapi/orders/proxyMayMarket:
	 *   get:
	 *     description: 可以提现的金额
	 *     tags: [订单管理]
	 *     summary: "可以提现的金额"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.get('/proxyMayMarket', ordersController.proxyMayMarket)
	/**
	 * @swagger
	 * /dlyadminapi/orders/alipayOrders:
	 *   get:
	 *     description: 支付宝订单列表
	 *     tags: [订单管理]
	 *     summary: "支付宝订单列表"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.get('/alipayOrders', ordersController.alipayOrders)
	/**
	 * @swagger
	 * /dlyadminapi/orders/uporderFile:
	 *   post:
	 *     description: 上传抖店服务市场订单文件
	 *     tags: [订单管理]
	 *     summary: "上传抖店服务市场订单文件"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.post('/uporderFile', ordersController.uporderFile)

	/**
	 * @swagger
	 * /dlyadminapi/orders/settlementOrder :
	 *   post:
	 *     description: 结算订单
	 *     tags: [订单管理]
	 *     summary: "结算订单"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.post('/settlementOrder', ordersController.settlementOrder)
	/**
	 * @swagger
	 * /dlyadminapi/orders/puttlementOrder :
	 *   put:
	 *     description: 编辑结算订单
	 *     tags: [订单管理]
	 *     summary: "编辑结算订单"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.put('/puttlementOrder/:id', ordersController.puttlementOrder)
	/**
	 * @swagger
	 * /dlyadminapi/orders/gettlementOrder :
	 *   get:
	 *     description: 结算订单列表自己提交的
	 *     tags: [订单管理]
	 *     summary: "结算订单自己提交的"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.get('/gettlementOrder', ordersController.gettlementOrder)

	/**
	 * @swagger
	 * /dlyadminapi/orders/getuserPuterList :
	 *   get:
	 *     description: 获取申请提现的列表
	 *     tags: [订单管理]
	 *     summary: "获取申请提现的列表"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.get('/getuserPuterList', ordersController.getuserPuterList)

	/**
	 * @swagger
	 * /dlyadminapi/orders/setMaPayStatus :
	 *   get:
	 *     description: 设置打款信息
	 *     tags: [订单管理]
	 *     summary: "设置打款信息"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.put('/setMaPayStatus/:id', ordersController.setMaPayStatus)

export default router
